2aa32c1034e47258c7528b9f948e1be3fb766faa,java/debugger/impl/src/com/intellij/debugger/actions/ToggleBreakpointEnabledAction.java,ToggleBreakpointEnabledAction,update,#AnActionEvent#,58
Before Change
FileTypeManager fileTypeManager = FileTypeManager.getInstance();
final VirtualFile virtualFile = file.getVirtualFile();
FileType fileType = virtualFile != null ? fileTypeManager.getFileTypeByFile(virtualFile) : null;
if (DebuggerUtils.supportsJVMDebugging(fileType)) {
Breakpoint breakpoint = findBreakpoint(project);
if (breakpoint == null) {
presentation.setEnabled(false);
After Change
FileTypeManager fileTypeManager = FileTypeManager.getInstance();
final VirtualFile virtualFile = file.getVirtualFile();
FileType fileType = virtualFile != null ? fileTypeManager.getFileTypeByFile(virtualFile) : null;
if (DebuggerUtils.supportsJVMDebugging(fileType) || DebuggerUtils.supportsJVMDebugging(file)) {
Breakpoint breakpoint = findBreakpoint(project);
if (breakpoint == null) {
presentation.setEnabled(false);